package com.sg.dto.biz.bff.common;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Objects;

/**
 * @desc BffEvaObjTargetCycleBudgetSetDto
 * @使用场景
 */
@Data
public class BffEvaObjTargetCycleBudgetSetDto implements Serializable {

    /**
     * 被评对象目标周期ID
     */
    @ApiModelProperty("被评对象目标周期ID")
    private String evaObjTargetCycleId;

    /**
     * 资金来源ID
     */
    @ApiModelProperty("资金来源ID")
    private String capitalSourceId;

    /**
     * 预算金额
     */
    @ApiModelProperty("预算金额")
    private Double budget;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        BffEvaObjTargetCycleBudgetSetDto that = (BffEvaObjTargetCycleBudgetSetDto) o;
        return evaObjTargetCycleId == that.evaObjTargetCycleId && capitalSourceId == that.capitalSourceId && budget == that.budget;
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), evaObjTargetCycleId, capitalSourceId, budget);
    }

}
